    /**
     * @function getTotalRows
     *
     * @access   public
     * @param    int
     * @param    array()
     * @param    string
     * @return   int
     */
    public function getTotalRows($arrWhere = array(), $field_groupby = '')
    {
    	if (count($arrWhere) > 0) {
            $this->db->where($arrWhere);
    	}
        if (!empty($field_groupby) && is_string($field_groupby)) {
            if ($this->db->field_exists($field_groupby, $this->_tbl)) {
                $this->db->group_by($field_groupby);
            }
        }
        $query = $this->db->get_where($this->_tbl, $arrWhere);

        return $query->num_rows();
    }
